<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        padding: 50px;
      }
      .demo {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .circle {
        display: inline-block;
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 10;
        border-radius: 50%;
        background-color: #dbe6f7;
      }
      .circle::after {
        content: "";
        position: absolute;
        z-index: -10;
        display: inline-block;
        width: 20px;
        height: 20px;
        left: 5px;
        top: 5px;
        border-radius: 50%;
        background-color: #000;
      }
      .text {
        display: inline-block;
        margin-left: 30px;
        font-size: 20px;
        color: #000;
        transition: all 1.2s;
      }
      .demo:hover .text {
        margin-left: 15px;
      }
      .demo:hover .circle {
        background-color: #fff;
      }
    </style>
  </head>
  <body>
    <div class="demo">
      <span class="circle"></span>
      <span class="text"> JabinPeng </span>
    </div>
    <div>
      <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
      <lottie-player
        src="https://assets7.lottiefiles.com/packages/lf20_0SK7JNcJ7U.json"
        background="transparent"
        speed="1"
        style="width: 300px; height: 300px"
        loop
        autoplay
      ></lottie-player>
      <lottie-player
        src="https://assets5.lottiefiles.com/packages/lf20_oh6P9B.json"
        background="transparent"
        speed="1"
        style="width: 300px; height: 300px"
        loop
        autoplay
      ></lottie-player>
    </div>
  </body>
</html>
